package com.lixin.model.response;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lixin.entity.Comments;
import com.lixin.entity.Likes;
import com.lixin.entity.Posts;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * Description:
 * Copyright:   Copyright (c)2023
 * Company:     sci
 *
 * @author: 张李鑫
 * @version: 1.0
 * Create at:   2023-08-12 23:16:59
 * <p>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2023-08-12     张李鑫                     1.0         1.0 Version
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PostsResponse {
    private static final long serialVersionUID = 1L;

    /**
     * 动态唯一标识符（主键）
     */
    @TableId(value = "post_id", type = IdType.AUTO)
    private Integer postId;

    /**
     * 发布动态的用户ID
     */
    private Integer userId;

    /**
     * 动态内容
     */
    private String content;

    /**
     * 动态发布时间
     */
    private Date timestamp;

    private String imageUrl;


    private List<Comments> comments;

    private List<Likes> likes;
}
